﻿using System;
using System.Windows;
using Microsoft.Phone.Controls;
using ProtetoresDaMata.Data;

namespace ProtetoresDaMata
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            //Begin to data base    
            DataInit data = new DataInit();

        }

        // Simple button Click event handler to take us to start game page
        private void StartGame_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/GamePage.xaml", UriKind.Relative));      
        }

        // Simple button Click event handler to take us to ranking game page
        private void Ranking_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/RankingPage.xaml", UriKind.Relative));
        }

        // Simple button Click event handler to take us to rewards game page
        private void Rewards_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/RewardsPage.xaml", UriKind.Relative));
        }

        // Simple button Click event handler to take us to credits game page
        private void Credits_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/CreditsPage.xaml", UriKind.Relative));
        }

        // Simple button Click event handler to take us to Upgrades game page
        private void Upgrades_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/UpgradesPage.xaml", UriKind.Relative));
        }
    }
}